package com.coffee.admin.api.supplier.service;

import com.coffee.admin.api.supplier.query.SupplierRoleQuery;
import com.coffee.admin.api.supplier.req.SupplierRoleReq;
import com.coffee.admin.api.supplier.result.SupplierRoleResult;
import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface SupplierRoleService {

	Page<SupplierRoleResult> getPager(SupplierRoleQuery param, PagerInfo pr);
	
	Integer count(SupplierRoleQuery param);
	
	SupplierRoleResult getDetail(Integer id,Integer supplierId);
	
	List<SupplierRoleResult> getList(SupplierRoleQuery param, PagerInfo pr);
	
	List<SupplierRoleResult> getList(SupplierRoleQuery param);
	
	List<SupplierRoleResult> getList();

	void delete(Integer id,Integer supplierId);

	void addOrUpdate(SupplierRoleReq result)throws BusinessException;
	
	Map<Integer,SupplierRoleResult> getItemMap(Set<Integer> idSet);
	
	Map<Integer,SupplierRoleResult> getItemMap();
	
}